package com.lantosec.hmrp.modules.warning.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lantosec.hmrp.core.kit.PageVO;
import com.lantosec.hmrp.modules.monitor.entity.WarningTotalEntity;
import com.lantosec.hmrp.modules.warning.entity.WarningData;
import com.lantosec.hmrp.modules.warning.entity.WarningEvalNote;
import com.lantosec.hmrp.modules.warning.entity.WarningRuleEval;
import com.lantosec.hmrp.modules.warning.entity.WarningSummary;
import com.lantosec.hmrp.modules.warning.vo.WarningSummaryVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 预警数据 Mapper 接口
 * </p>
 *
 * @author AutoCode
 * @since 2020-05-27
 */
public interface WarningDataMapper extends BaseMapper<WarningData> {

    PageVO<WarningSummary> summaryStatistics(PageVO<WarningSummary> page,@Param("condition") WarningSummaryVO condition);

    PageVO<WarningData> notHandle(PageVO<WarningData> page, @Param("ruleId")String ruleId);

    List<WarningRuleEval> selectWarningRuleEval(String ruleId);

    List<WarningEvalNote> getWarningEvalNote(@Param("ruleId") String ruleId, @Param("dataId") Integer dataId);

    PageVO<WarningData> disposalRejected(PageVO<WarningData> page, @Param("ruleId")String ruleId);

    PageVO<WarningData> pending(PageVO<WarningData> page, @Param("ruleId")String ruleId);

    String queryDeptId(String targetId);

    WarningTotalEntity getSqlResult(String sqlResult);

    String getSqlContent(String sqlName);

    List<String> getNotifierPositionId(String ruleId);

    List<WarningSummary> getDeptDataInfo(String deptId);
}
